Contribution org.nuxeo.ecm.platform.picture.jsf.layouts--widgettypes
In component org.nuxeo.ecm.platform.picture.jsf.layouts
org.nuxeo.ecm.platform.picture.jsf.layouts
inside nuxeo-platform-imaging-jsf-6.0.jar
This contribution is part of XML component Extension Point
Extension point widgettypes of component WebLayoutManager.Contributed Items
XML Source
<extension point="widgettypes" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">
<widgetType name="picture_view">
<configuration>
<sinceVersion>5.7.2</sinceVersion>
<title>Picture view</title>
<description>
<p>
The picture_view widget displays the configured View of a document
having the Picture facet.
</p>
<p>
It requires the following fields configuration: first field maps
the document model.
</p>
</description>
<handlingLabels>true</handlingLabels>
<properties>
<layouts mode="view">
<layout name="picture_view_widget_type_properties_view">
<rows>
<row>
<widget>pictureView</widget>
</row>
<row>
<widget>width</widget>
</row>
<row>
<widget>height</widget>
</row>
</rows>
<widget name="pictureView" type="selectOneListbox">
<labels>
<label mode="any">Picture view</label>
</labels>
<helpLabels>
<label mode="any">
The name of the picture view, defaults to
'Medium'.
</label>
</helpLabels>
<fields>
<field>pictureView</field>
</fields>
<selectOptions>
<option itemLabel="Medium (default value)" itemValue="Medium"/>
<option itemLabel="Small" itemValue="Small"/>
<option itemLabel="Thumbnail" itemValue="Thumbnail"/>
<option itemLabel="OriginalJpeg" itemValue="OriginalJpeg"/>
</selectOptions>
</widget>
<widget name="width" type="int">
<labels>
<label mode="any">Width</label>
</labels>
<helpLabels>
<label mode="any">
The width of the image.
</label>
</helpLabels>
<fields>
<field>width</field>
</fields>
</widget>
<widget name="height" type="text">
<labels>
<label mode="any">Height</label>
</labels>
<helpLabels>
<label mode="any">
The height of the image.
</label>
</helpLabels>
<fields>
<field>height</field>
</fields>
</widget>
</layout>
</layouts>
</properties>
<categories>
<category>summary</category>
</categories>
<supportedModes>
<mode>view</mode>
</supportedModes>
</configuration>
<handler-class>
org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
</handler-class>
<property name="template">/widgets/picture_view_widget_template.xhtml</property>
</widgetType>
</extension>